import requests from '@/utils/request'
// import store  from '@/store'
export const postlist = () => {
  return requests({
    url: 'listpost',
    method: 'post'
  })
}
// export function getlist() {
//   return requests({
//     url: '/listget',
//     method: 'get',
//   })
// }
export const getlist = () => {
  return requests.post('/listget')
}
export const logintitle = () => {
  return requests.get('/logintitle')
}
// export const yanzhengmas=()=>{
//     return requests({
//         url:'/yanzhengmas',
//         method:'post'
//     })
// }
export function yanzhengmas(){
  return requests({
    url:'/yanzhengmas',
    method:'post'
  })
}
export const login=(username)=>{
  return requests({
    url:'/login',
    method:'post',
    data:{
      username
    }
  })
}
export function mymoto(data){
  return requests.post('/mymoto',data)
}
